<div class="hd-20161202">
  <div class="hd-banner-bg banner-bg1">
    <div class="hd-banenr">
      <div class="banner-text">
            Entrar <a href="#">Geekvida.es >></a>
        </div>
    </div>
  </div>
  <div class="hd-main-content">
      <div class="hd-display-container" id="display1">
        <div class="hd-display-block1">
          <div class="display w1100">
            <h2 class="title"><img src="./images/201612021.png" alt="XIAOMI"></h2>
            <div class="hd-product-list">
              <ul class="lis1 clearfloat"></ul>
            </div>
          </div>
        </div>
        <div class="hd-display-block2">
          <div class="display">
            <div class="hd-product-list w1100">
              <ul class="lis1 clearfloat"></ul>
            </div>
          </div>
        </div>
      </div>
     
      <div class="hd-display-container" id="display2">
        <div class="hd-display-block">
          <div class="display w1100">
            <h2 class="title"><img src="./images/201612023.png" alt="Productos Navideños"></h2>
            <img class="bg-top" src="./images/201612024.png">
            <div class="hd-product-list">
              <ul class="lis1 clearfloat"></ul>
            </div>
            <img src="./images/201612027.jpg" style="margin-bottom: 20px;">
          </div>
         </div>
      </div>
          
      <div class="hd-display-container" id="display3">
        <div class="hd-display-block2">
          <div class="display">
            <div class="hd-product-list w1100">
              <h2 class="title"><img src="./images/201612025.png" alt="IPHONE&MEIZU"></h2>
              <ul class="lis1 clearfloat"></ul>
            </div>
          </div>
        </div>
      </div>

      <div class="hd-display-container" id="display4">
        <div class="hd-display-block2">
          <div class="display">
            <div class="hd-product-list w1100">
              <h2 class="title"><img src="./images/2016120211.jpg" alt="ALMACÉN CHINO"></h2>
              <ul class="lis1 clearfloat"></ul>
            </div>
          </div>
        </div>
      </div>
      
      <div class="hd-display-container" id="display5">
        <div class="hd-display-block">
          <div class="display w1100">
            <h2 class="title"><img src="./images/201612026.png" alt="Para os mais novos "></h2>
            <img class="bg-top" src="./images/201612024.png">
            <div class="hd-product-list">
              <ul class="lis1 clearfloat"></ul>
            </div>
            <img src="./images/201612027.jpg" style="margin-bottom: 20px;">
          </div>
         </div>
      </div>
      <div class="hd-display-bottom">
        <div class="hd-display-block w1100">
          <img src="./images/201612027.png" style="margin-top:35px;">
         </div>
      </div>
      <div class="hd-display-container">
        <div class="hd-display-block w1100">
          <div class="panel-layout">
            <ul>
              <li><a class="hdPageLInk" href="#display1">XIAOMI</a></li>
              <li><a class="hdPageLInk" href="#display2">Productos Navideños</a></li>
              <li><a class="hdPageLInk" href="#display3">IPHONE&MEIZU</a></li>
              <li><a class="hdPageLInk" href="#display4">ALMACÉN CHINO</a></li>
              <li style="margin-bottom: 8px;"><a class="hdPageLInk" href="#display5">GADGETS</a></li>
              <li><a class="hdPageLInk" style="height:7px;" href="#Top"></a></li>
            </ul>
          </div>
         </div>
      </div>
  </div>
</div>
<style>
  .hd-20161202{background: #fff;min-width: 1300px;}
  .hd-20161202 .banner-bg1{background: url(./images/201612021.jpg)no-repeat center top;height:852px;min-width: 1300px;}
  .hd-20161202 .hd-banenr{height:732px;position: relative;width: 1103px;margin: 0px auto;}
  .hd-banenr .banner-text{position: absolute;right: 0px;font-size: 14px;width: 180px;text-align: center;border: 1px solid #dedede;background: #fff;padding: 5px;}
  .hd-banenr .banner-text a {color:#33aa00;}
  .hd-display-container .title {text-align: center; margin: 0px; padding-top: 15px;}
  #display5 .title {padding:0px 0px 15px;}
  #display1 .hd-display-block1{background: url(./images/201612022.jpg) no-repeat center top #fff;}
  .hd-display-block2{background: url(./images/201612023.jpg) repeat;}
  #display1 .hd-display-block2 .display {background: url(./images/201612024.jpg) no-repeat center top;padding:10px 0px;}
  #display3 .hd-display-block2 .display {background: url(./images/201612029.jpg) no-repeat center top;}
  #display4 .hd-display-block2 .display {background: url(./images/2016120210.jpg) no-repeat center top;}
  #display1 .title {padding:35px 0px 30px;}
  #display3 .title {padding: 25px 0px 10px;}
  .hd-display-block1 .hd-product-list{border: 10px solid #ff6868; background: #fff; margin: 15px 0px;padding:10px;}
  .hd-display-block2 .small-list .hd-link-img {border:none;background: #fff;}
   #display1 .hd-display-block2 li:nth-child(5n+1), #display1 .hd-display-block2 li:nth-child(5n+3), #display1 .hd-display-block2 li:nth-child(5n+5){margin-top:30px;}
  .small-list .hd-link-img {display: block;border: 1px solid #eee;text-align: center;padding:10px;}
  .hd-link-img .product-info {display: block;height:30px;line-height:15px;overflow: hidden;margin-top:5px;color:#666;}
  .hd-main-content .old-price {font-size: 15px;text-decoration: line-through;color: #666;margin-right: 5px;}
  .hd-main-content .current-price { font-size: 25px;font-weight: bold;color: #d80112;}
  .small-list .hd-btn-buy { width: 100%;height: 32px;background: url(./images/201612022.png) no-repeat center;-webkit-background-size: cover;-moz-background-size: cover;-o-background-size: cover;background-size: cover;-ms-background-size: cover;display: block;font-size: 20px;color: #f9de01;text-align: center;padding-top: 8px;margin: 10px 0px 5px;}
  .small-list .hd-btn-buy:before{pointer-events: none;position: absolute;z-index: -1;content: '';top: 100%;left: 5%;height: 10px;width: 90%;opacity: 0;background: -webkit-radial-gradient(center, ellipse, rgba(0, 0, 0, 0.35) 0%, transparent 80%);background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.35) 0%, transparent 80%);-webkit-transition-duration: 0.3s;transition-duration: 0.3s;-webkit-transition-property: transform, opacity;transition-property: transform, opacity;}
  .small-list:hover .hd-btn-buy:before{opacity: 1;-webkit-transform: translateY(5px);transform: translateY(5px);}
  #display2 .hd-display-block {background: url(./images/201612025.jpg)center top no-repeat, url(./images/201612026.jpg)center bottom repeat-y;}
   #display5 .hd-display-block {background: url(./images/2016120212.jpg)center top no-repeat, url(./images/201612026.jpg)center bottom repeat-y;}
  #display2 .hd-product-list, #display5 .hd-product-list {background: url(./images/201612028.jpg)center repeat-y; width: 941px; margin: 0px auto; padding: 10px 25px;}
  #display2 ul li.small-list,#display5 ul li.small-list { width: 219px; margin: 15px 8px 0px;}
  .hd-display-block .display {text-align:center;}
  .hd-display-bottom {height:212px;background:url(./images/2016120213.jpg) repeat-x;text-align:left;}
   ul li.small-list {width:202px;margin:15px 5px;position: relative;-webkit-transition: all 0.3s ease; -moz-transition: all 0.3s ease; -ms-transition: all 0.3s ease; -o-transition: all 0.3s ease; transition: all 0.3s ease;float:left;}
  ul li.small-list:hover {transform: translateY(-6px); -webkit-transform: translateY(-6px); -o-transform: translateY(-6px); -ms-transform: translateY(-6px); -moz-transform: translateY(-6px);}
  .small-list .discount-number2{position: absolute;height: 55px;width: 55px;font-size: 20px;color: #fff;font-weight: bold;top: 0px;right: 0px;line-height: 55px;text-align: center;background: #aa0101;border-radius: 50%;}
  ul li.small-list img {width:100%;}
  .panel-layout{background:url(./images/201612028.png) no-repeat;width: 208px; height: 525px; position: fixed; top: 0; margin-left: 1055px;-webkit-transform: scale(0.01); -moz-transform: scale(0.01); -o-transform: scale(0.01); -ms-transform: scale(0.01); transform: scale(0.01); -webkit-transition: all .6s linear 0s; -moz-transition: all .6s linear 0s; -o-transition: all .6s linear 0s; -ms-transition: all .6s linear 0s; transition: all .6s linear 0s; visibility: hidden; text-align: center;}
  .panel-layout.active { visibility: visible; -webkit-transform: scale(1); -moz-transform: scale(1); -o-transform: scale(1); -ms-transform: scale(1); transform: scale(1);}
  .panel-layout.active { visibility: visible; -webkit-transform: scale(1); -moz-transform: scale(1); -o-transform: scale(1); -ms-transform: scale(1); transform: scale(1);}
  .panel-layout ul {position: absolute; left: 0px; width: 95%; top:242px;}
  .panel-layout ul li{list-style: none;margin: 0px auto 17px;}
  .panel-layout ul li a{display: block;width: 100%;color: #fff;text-align: center;font-size: 12px;padding: 5px 0px;}
  .panel-layout ul li.current a,.panel-layout ul li a:hover{color:#fff100;}
  .bg-top {display: block;margin:0px auto;}
</style>

<script type="text/javascript">
  (function($){
      $(function(){

        var str1 = '';
        for(var i = 0; i < 15; i++){
          str1 += ` <li class="small-list">
                      <a class="hd-link-img" href="#">
                        <img src="./images/2016040616.jpg" alt="Blackview Ultra A6 Plus 2GB 16GB Dorado">
                        <span class="old-price">129.95€</span>
                        <span class="current-price">99.95€</span>
                        <span class="product-info">Blackview Ultra A6 Plus 2GB 16GB Dorado</span>
                      </a>
                      <a href="#" class="hd-btn-buy">Comprar &gt;&gt;</a>
                      <span class="discount-number2">-25€</span>
                  </li>`
        }

        $(".lis1").append(str1);
        var sideNav = $(".panel-layout");
        $(window).on("scroll",function(){
          var sideNavShow = $(".hd-banner-bg").offset().top + $(".hd-banner-bg").outerHeight(true)-200;
          var modTop = [];
          if($(this).scrollTop()>=sideNavShow){
              sideNav.addClass("active");
            }
            else{
              sideNav.removeClass("active");
            }
          
          for (var i = 0; i < $(".panel-layout ul li .hdPageLInk").length - 1; i++) {
              modTop[i] = $($(".panel-layout ul li a").eq(i).attr("href")).offset().top-5;

              if ($(window).scrollTop() >= modTop[i]) {
                $(".panel-layout ul li").removeClass('current').eq(i).addClass('current');
              };
            };
        });
        
        sideNav.find("li").find(".hdPageLInk").on("click",function(e){
          e.preventDefault();
          var aHash = this.hash;
          $("html,body").animate({
            scrollTop: aHash=="#Top" ? 0 : $(aHash).offset().top
          });
        });
      });

      
  })(jQuery); 
</script>